import request from '@/utils/request'

// 查询设备
export function listComponent(query) {
  return request({
    url: '/business/component/list',
    method: 'get',
    params: query
  })
}

// 编辑运行模式
export function editComponent(data) {
  return request({
    url: '/business/component/editComponent',
    method: 'put',
    data: data
  })
}